package general;

public class Auto_US_Mult extends US_Mult {

    //
    //default constructor
    //
    public Auto_US_Mult () {
        super();
    }
    
    //
    //regular constructor
    //
    public Auto_US_Mult (int new_m, int new_dim) {
        //create a functional unit
        super(new_m, new_dim);
    }
    
    //
    //carry out a multiplication
    //Note: this function may be overridden to add more functionality
    //
    @Override
    public void multiply(int inA, int inB) {
        smartSize(inA, inB);
        layout();
        initialize( inA, inB );
        //take the two's complement of the MSBs of the operands
        compute();
    }
}